/**
 * class for menu-定义菜单 model
 */
export class MenuItem {
    url: string;
    name: string;
    icon: string;
    hidden: boolean;
    children: object[];

    constructor(
        url: string,
        name: string,
        icon: string,
        children: object[],
        hidden: boolean = false
    ) {
        this.url = url;
        this.name = name;
        this.icon = icon;
        this.hidden = hidden;
        this.children = children;
    }
}